<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Tattoo Portal.org</title>
        <link type="text/css" href="{$styles_dir}/main.css" rel="stylesheet"/>
        <script type="text/javascript" src="{$scripts_dir}/jquery.js"></script>
        <script type="text/javascript" src="{$scripts_dir}/jquery.cookie.js"></script>
        <script type="text/javascript" src="{$scripts_dir}/ui_related.js"></script>
        <script type="text/javascript" src="{$scripts_dir}/news_slider.js"></script>
        <script type="text/javascript" src="{$scripts_dir}/init.js"></script>
        {if $currentPage=="galerija_single"}
        <script type="text/javascript" src="{$scripts_dir}/pixastic.desatruate.js"></script>
        <script type="text/javascript" src="{$scripts_dir}/jquery.imgareaselect.min.js"></script>
        <script type="text/javascript" src="{$scripts_dir}/image_gallery.js"></script>
        <script type="text/javascript" src="{$scripts_dir}/init_galerija_single.js"></script>
        <script type="text/javascript">
            {literal}$(document).ready(function(){{/literal}
                $('#{$single_photo.id}').click();
            {literal}});{/literal}
        </script>
        {/if}
        {if $currentPage=="magazin_single"}
        <script type="text/javascript">var switchTo5x=false;</script>
        <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
            {literal}
        <script type="text/javascript">stLight.options({publisher:'015c2aa6-ee60-4bb9-9459-ebfe9692bd07'});</script>
            {/literal}
         {/if}
         {if $currentPage=="nalog"}
        <script type="text/javascript" src="{$scripts_dir}/my_account.js"></script>
        <script type="text/javascript" src="{$scripts_dir}/init_nalog.js"></script>
         {/if}
         {if $currentPage=="profil"}
            <script type="text/javascript" src="{$scripts_dir}/init_profil.js"></script>
         {/if}
         {if $currentPage=="pocetna"}
        <script type="text/javascript" src="{$scripts_dir}/jquery.scrollTo-1.4.2-min.js"></script>
        <script type="text/javascript" src="{$scripts_dir}/jquery.serialScroll-1.2.2-min.js"></script>
        <script type="text/javascript" src="{$scripts_dir}/init_pocetna.js"></script>
         {/if}
         {if $currentPage=="magazin_admin"}
        <script type="text/javascript" src="{$scripts_dir}/tiny_mce/tiny_mce.js"></script>
        <script type="text/javascript" src="{$scripts_dir}/tiny_mce/basic_config.js"></script>
         {/if}
        <script type="text/javascript" src="{$scripts_dir}/jquery.validate.js"></script>
        {if $currentPage=="registracija"}
        <script type="text/javascript" src="{$scripts_dir}/init_registracija.js"></script>
        {else}
        <script type="text/javascript">
            {literal}
             $(document).ready(function(){
               $("form").validate();
             });
             {/literal}
        </script>
        {/if}
        
    </head>
    <body>
        <div class="wrapper">
            <div class="header">
                <h1><a href="{$root_dir}/">Tattoo Portal.org</a></h1>
                <div id="account_box">
                    {if $userIsLogged}
                    <div id="logged">
                        <p>Prijavljeni ste kao <a href="{$root_dir}/nalog/" title="Moj nalog">{$user.username}</a> | {$logoutLink}</p>
                        <p>Fotografija:{$user.broj_fotografija} | Komentara: {$user.broj_komentara} | Likes: {$user.broj_skljoceva} | <a href="{$porukeLink}">Poruke: {$poruke}</a></p>
                    </div>
                    {else}
                    {$loginbox}
                    {/if}
                </div>

                <ul id="main_menu">
                    <li><a href="{$url}/?page=pocetna">Početna</a></li>
                    <li>
                        <a href="{$url}/?page=galerija&tip_galerije=colour&ipp=24">Galerija</a>
                        <ul class="submenu">
                            <li><a href="{$url}/?page=galerija&tip_galerije=colour&ipp=24">Colour</a></li>
                            <li><a href="{$url}/?page=galerija&tip_galerije=black%20and%20gray&ipp=24">Black &amp; Gray</a></li>
                            <li><a href="{$url}/?page=galerija&tip_galerije=cover%20up&ipp=24">Cover Up</a></li>
                            <li><a href="{$url}/?page=galerija&tip_galerije=piercing&ipp=24">Piercing</a></li>
                            <li><a href="{$url}/?page=galerija&tip_galerije=flash&ipp=24">Flash</a></li>
                            <li><a href="{$url}/?page=galerija&tip_galerije=personal&ipp=24">Personal</a></li>
                        </ul>
                    </li>
                    <li><a href="{$url}/?page=clanovi&sr=ne&ipp=10">Članovi</a></li>
                    <li><a href="{$url}/forum">Forum</a></li>
                    <li><a href="{$url}/?page=magazin">Magazin</a>
                    {if $userIsAdmin}
                        <ul class="submenu">
                            <li><a href="{$url}/?page=magazin_admin">Admin</a></li>
                        </ul>
                    {/if}
                    </li>

                    {if $userIsLogged}
                    <li><a href="{$url}/?page=nalog&ipp=18">Moj Nalog</a></li>
                    {else}
                    <li><a href="{$url}/?page=registracija">Registracija</a></li>
                    {/if}

                    <li><a href="{$url}/?page=video&ipp=10">Video</a>
                    {if $userIsAdmin}
                        <ul class="submenu">
                            <li><a href="{$url}/?page=video_admin">Admin</a></li>
                        </ul>
                    {/if}
                    </li>
                    <li><a href="{$url}/?page=o_nama">O Nama</a></li>
                    <li class="social"><a id="contact" href="#" title="Kontaktirajte nas">Kontakt</a></li>
                    <!--<li class="social"><a id="youtube" href="#" title="Pratite naš YouTube kanal" target="_blank">YouTube</a></li>-->
                    <li class="social"><a id="myspace" href="#" title="Pogledajte našu My Space stranicu" target="_blank">My Space</a></li>
                    <li class="social"><a id="twitter" href="#" title="Pogledajte našu Facebook stranicu" target="_blank">Twitter</a></li>
                    <li class="social"><a id="facebook" href="#" title="Pratite nas na Twitter-u" target="_blank">Facebook</a></li>
                </ul>
            </div>